package com.aoip.telemetry.telemetry.entity.common;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.time.LocalDateTime;

/**
 * @author chenbai
 * @version 1.0
 * @date 2022/2/16 15:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
@TableName("sys_file")
@ApiModel(description = "文件上传信息表")
public class FileBaseEntity {

    @TableId(value = "id", type = IdType.NONE)
    @ApiModelProperty("文件主键")
    private String id;

    @TableField(value = "file_name")
    @ApiModelProperty("文件名称")
    private String fileName;

    @TableField(value = "file_path")
    @ApiModelProperty("文件路径")
    private String filePath;

    @TableField(value = "file_type")
    @ApiModelProperty("文件类型")
    private String fileType;

    @TableField(value = "file_size")
    @ApiModelProperty("文件大小")
    private Long fileSize;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @ApiModelProperty("是否删除（0：正常，1：删除）")
    @TableLogic
    private Integer delFlag;

    @TableField(value = "bz")
    @ApiModelProperty("备注信息")
    private String bz;
}
